package cn.zindesign.base;

import java.util.List;
import java.util.Map;

import cn.zindesign.system.PageList;


/**
 * @author lihui
 * 2012-1-5
 */
public interface BaseService {
	
	int doInsert(String key,Object record);
	
	int doUpdateById(String key,Object record);
	
	int doDeleteById(String key,Integer id);
	
	int doBatchDelete(String key,String[] ids);
    
	Object selectById(String key,Integer id);
   
    List<Object> selectByProperty(String key,Map<?, ?> map);
    
    PageList<Object> selectPageListByProperty(String key,Map<?,?> map);
    
    int countByProperty(String key,Map<?, ?> map);
	
	

}
